﻿using System.Linq;
using Transport.Core.Models.Parcels;
using Transport.Services.Infrastructure;

namespace Transport.Services.Parcels
{
    public class ParcelPackagingGroupRepository : RepositoryBase<ParcelPackagingGroup>, IParcelPackagingGroupRepository
    {
        public ParcelPackagingGroupRepository(IUnitOfWork unitOfWork)
            : base(unitOfWork)
        {
        }

        public IQueryable<ParcelPackagingGroup> Search(string text)
        {
            return GetAll().Where(p => p.IsDeleted == false);
        }
    }
}
